-- GENERATED SPELL FOR [Venom Web Spider] --


function spell0_217(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_217', 30000, 1)
end

function spell1_217(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_217', 5289, 1)
end

function Sorts_217(pUnit, Event)
local choix_sorts_217 = math.random(0, 1)
if choix_sorts_217 == 0 then
pUnit:RegisterEvent('spell0_217', 1, 1)
end
if choix_sorts_217 == 1 then
pUnit:RegisterEvent('spell1_217', 1, 1)
end
end

function mob217_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_217', math.random(1500, 3000), 1)
end

function mob217_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob217_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob217_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(217, 1, 'mob217_Action')
RegisterUnitEvent(217, 2, 'mob217_Leave')
RegisterUnitEvent(217, 3, 'mob217_Kill')
RegisterUnitEvent(217, 4, 'mob217_Die')
